package com.zwps.biz.api.model.vo.dept;

import java.time.LocalDateTime;
import java.util.List;

import com.zwps.common.tool.tree.Trees;

import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Getter;
import lombok.Setter;

@Schema(description = "树")
@Getter
@Setter
public class DeptTreeVO extends Trees<String, Void, DeptTreeVO> {

    @Schema(description = "ID")    
    private String id;

    @Schema(description = "上级ID")
    private String parentId;

    @Schema(description = "部门名称")
    private String name;

    @Schema(description = "排序值")
    private Integer sort;

    @Schema(description = "子集")
    private List<DeptTreeVO> children;
    
    /**
     * 用户人数
     */
    @Schema(description = "用户人数")
    private Integer userNum;

    /**
     * 部门树编码
     */
    @Schema(description = "部门树编码")
    private String treeCode;

    /**
     * 备注
     */
    @Schema(description = "备注")
    private String remark;


    /**
     * 修改时间
     */
    @Schema(description = "修改时间")
    private LocalDateTime updateTime;
    
    /**
     * 创建用户
     */
    @Schema(description = "创建用户")
    private String createBy;

    /**
     * 创建时间
     */
    @Schema(description = "创建时间")
    private LocalDateTime createTime;

    /**
     * 修改用户
     */
    @Schema(description = "修改用户")
    private String updateBy;

}
